<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript" src="static/js/jquery.min.js"></script>
    <script type="text/javascript"
            src="static/js/bootstrap/js/bootstrap.min.js"></script>
    <link rel="stylesheet"
          href="static/js/bootstrap/css/bootstrap.min.css" />
    <link rel="stylesheet"
          href="static/js/bootstrap/css/bootstrap-treeview.min.css"
          href="static/js/bootstrap/css/bootstrap-treeview.min.css"
    >
    <script src="static/js/bootstrap/js/bootstrap-treeview.min.js"></script>
    <link rel="stylesheet"
          href="static/js/bootstrap/css/bootstrap.addtabs.css">
    <script src="static/js/bootstrap/js/bootstrap.addtabs.min.js"></script>
    <link rel="stylesheet" href="static//js/bootstrap/css/bootstrap-table.min.css">
    <script src="static/js/bootstrap/js/bootstrap-table.min.js"></script>
    <script src="static/js/bootstrap/js/bootstrap-table-zh-CN.min.js"></script>
    <script src="static/js/bootstrap/js/bootbox.js"></script>
    <link rel="stylesheet"
          href="static/js/bootstrap/css/bootstrap-datetimepicker.min.css" />
    <script type="text/javascript"
            src="static/js/bootstrap/js/bootstrap-datetimepicker.min.js"></script>
    <script type="text/javascript"
            src="static/js/bootstrap/js/bootstrap-datetimepicker.zh-CN.js"></script>
    <script src="static/js/bootstrap-fileinput/js/fileinput.js"></script>
    <script src="static/js/bootstrap-fileinput/js/locales/zh.js"></script>
    <link rel="stylesheet" href="static/js/bootstrap-fileinput/css/fileinput.css">
</head>
<body>

    <center>
        <font size="4"><b>编辑材料单</b></font>
    </center>

    <br>

    <form class="form-inline" id="materials_cyt" role="form" method="post">
        <table align="center" class="table">
            <tr>
                <td>
                    <div class="form-group">
                        <label for="materialsType">类目</label>
                        <input type="text" name="materialsType" class="form-control" autocomplete="off" id="materialsType" placeholder="请输入类目">
                    </div>
                </td>
                <td>
                    <div class="form-group">
                        <label for="materialsName">材料名称</label>
                        <input type="text" name="materialsName" class="form-control" autocomplete="off" id="materialsName" placeholder="请输入材料名称">
                    </div>
                </td>
            </tr>
            <tr>
<!--                <td>-->
<!--                    <div class="form-group">-->
<!--                        <label for="materialsId">材料编码</label>-->
<!--                        <input type="text" name="materialsId" class="form-control" autocomplete="off" id="materialsId" placeholder="请输入材料名称">-->
<!--                    </div>-->
<!--                </td>-->
                <td>
                    <div class="form-group">
                        <label for="materialsCount">数量</label>
                        <input type="text" name="materialsCount" class="form-control" autocomplete="off" id="materialsCount" placeholder="请输入材料名称">
                    </div>
                </td>
            </tr>
        </table>
        <input class="btn btn-primary" style="width: 150px" type="button" value="保存" onclick="addMaterials()">
    </form>

</body>

<script>

    /* 材料新增--蔡运通 */
    function addMaterials(){
        $.ajax({
            url:"addmaterials_cyt",
            data:$("#materials_cyt").serialize(),
            dateType:"post",
            success:function(data){
                alert("操作成功")
                location.href="findPicture.html"
            }
        })
    }

</script>

</html>